import {createApp} from 'vue'
import App from './App.vue'
import router from "./router/index.js";
import pinia from "@/store/index.js";
// style
import './style.css'
import permission from "@/directive/permission.js";
import role from "@/directive/role.js";

const app = createApp(App)

app.use(router)
app.use(pinia)

// 自定义指令 v-permission
app.directive('permission', permission)
// 自定义指令 v-role
app.directive('role', role)

app.mount('#app')
